﻿using BusinessLogicLayer;
using Equin.ApplicationFramework;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PresentationLayer
{
    public partial class FormChiTietDA : Form
    {
        public FormChiTietDA()
        {
            InitializeComponent();
        }
        public CapNhatDA PhuongThucCapNhatDA { get; set; }
        public DuAn da;
        public string maDA { get; set; }
        private void ChiTietDuAn_Load(object sender, EventArgs e)
        {
            if (maDA != "")
            {
                txtMaDA.Text = da.MaDuAn;
                txtTenDA.Text = da.TenDuAn;
                txtMoTa.Text = da.MoTa;
                dtpNgayBD.Value = da.NgayBD;
                dtpNgayKT.Value = da.NgayKT;
                DuAnManager damanager = new DuAnManager();
                ActionResultAsList<NhanVien> dsda = new DuAnManager().LayDSChiTietNV(maDA);
                dgvDSNV.AutoGenerateColumns = false;
                dgvDSNV.DataSource = new BindingListView<NhanVien>(dsda.ObjectList);
            }
        }
    }
}
